<h2 class="block_title_red">
<div class="btrdiv active" id="general_all_articles"><a href="javascript:;" onclick="switchtab(this,'articles')">Статьи</a></div>
<div class="btrdiv" id="general_ukr_articles"><a href="javascript:" onclick="switchtab(this,'articles')">Статьи Украина</a></div>
</h2>

<div class="list_general_articles">
	<?php if( !empty($articles) ):?>
	
		<?php foreach($articles as $article):?>
				<div class="article">
					<?php if($article['image']):?>
						<?php echo link_to('<img title="'.$article['image_text'].'" src="/uploads/articles/thumbnail_70_70/'.$article['image'].'"/>','article_view',$article)?>
					<?php endif;?>
					<?php echo link_to($article['title'],'article_view',$article,'class="entity_header"')?><br/>
					<span class="cat_link">
						<?php echo link_to($article['ArticleCategory']['title'],'view_articles_category',$article['ArticleCategory'],"title='Показать все статьи по категории ".$article['ArticleCategory']['title']."'");?> | 
						<?php echo format_datetime($article['updated_at'],'f')?>
					</span><br/>
					<span class="short_description"><?php echo $article['short']?></span><br/>
				</div>		
		<?php endforeach;?>
	
	<?php else:?>
	no general articles
	<?php endif;?>
</div>

<div class="list_ukr_articles" style="display:none;">
	<?php if(!empty($articles_ukr)):?>
		<?php foreach($articles_ukr as $article):?>
	
				<div class="article">
					<?php if($article['image']):?>
						<?php echo link_to('<img title="'.$article['image_text'].'" src="/uploads/articles/thumbnail_70_70/'.$article['image'].'"/>','article_view',$article)?>
					<?php endif;?>
					<?php echo link_to($article['title'],'article_view',$article,'class="entity_header"')?><br/>
					<span class="cat_link">
						<?php echo link_to($article['ArticleCategory']['title'],'view_articles_category',$article['ArticleCategory'],"title='Показать все статьи по категории ".$article['ArticleCategory']['title']."'");?> | 
						<?php echo format_datetime($article['updated_at'],'f')?>
					</span><br/>
					<span class="short_description"><?php echo $article['short']?></span><br/>
				</div>			
	
		<?php endforeach;?>
	<?php else:?>
	no ukrainan articles
	<?php endif;?>
</div>

<p align="right" style='clear:both'>
<?php echo link_to('Архив статей', 'articles/index') ?>
</p>